package xyz.thoughtset.viewer.executor.core.entity;

import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import xyz.thoughtset.viewer.common.core.entity.BaseMeta;
import xyz.thoughtset.viewer.common.crud.core.annotation.ApiCRUDPower;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import xyz.thoughtset.viewer.common.annotation.log.DataOptLog;

import java.util.List;

@TableName
@Data
@AllArgsConstructor
@NoArgsConstructor
@DataOptLog
@ApiCRUDPower(insert = false,save = true,update = false,list = true)
public class QueryBody extends BaseMeta {
    protected String dsId;
    @TableField(condition = SqlCondition.LIKE)
    protected String query;
//    protected String type;

    @TableField(exist = false)
    private List<QueryParam> params;

}
